import request from '../utils/request';


/**
 * 获取所有调剂信息,包括条件查询接口
 * @param query
 * @returns {AxiosPromise}
 */
export const getAdjustInfo = query =>{
    return request({
        url:'/common/adjust/getAdjustInfo',
        method:'get',
        params:query
    })
};
export const getAdjustInfo2 = query =>{
    return request({
        url:'/common/adjust/getAdjustInfo2',
        method:'get',
        params:query
    })
};
/**
 * 保存调剂信息接口
 * @param data
 * @returns {AxiosPromise}
 */
export const saveAdjustInfo = data =>{
    return request({
        url:'/common/adjust/saveAdjustInfo',
        method:'post',
        data
    })
};
/**
 * 更新调剂信息接口
 * @param data
 * @returns {AxiosPromise}
 */
export const updateAdjustInfo = data =>{
    return request({
        url:'/common/adjust/updateAdjustInfo',
        method:'put',
        data
    })
};
/**
 *根据id删除调剂信息接口
 * @param id
 * @returns {AxiosPromise}
 */
export const delAdjustInfo = id =>{
    return request({
        url:'/common/adjust/delAdjustInfo',
        method:'delete',
        params:{id:id}
    })
};
/**
 * 根据id集合批量删除调剂信息接口
 * @param id
 * @returns {AxiosPromise}
 */
export const delBatchAdjustInfo = id =>{
    return request({
        url:'/common/adjust/delBatchAdjustInfo',
        method:'delete',
        params:{idList:id}
    })
};


